﻿using System;
using System.ComponentModel;
using System.Numerics;
using TaleWorlds.Core;
using TaleWorlds.GauntletUI;
using TaleWorlds.GauntletUI.BaseTypes;
using TaleWorlds.GauntletUI.Data;
using TaleWorlds.GauntletUI.ExtraWidgets;
using TaleWorlds.Library;
using TaleWorlds.MountAndBlade.GauntletUI.Widgets;
using TaleWorlds.MountAndBlade.GauntletUI.Widgets.Order;
using TaleWorlds.MountAndBlade.ViewModelCollection.Input;
using TaleWorlds.MountAndBlade.ViewModelCollection.Order;

namespace TaleWorlds.MountAndBlade.GauntletUI.AutoGenerated0
{
	// Token: 0x02000021 RID: 33
	public class OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_15_OrderTransferTroopItem__DependendPrefab : OrderTroopItemBrushWidget
	{
		// Token: 0x0600069D RID: 1693 RVA: 0x0002F071 File Offset: 0x0002D271
		public OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_15_OrderTransferTroopItem__DependendPrefab(UIContext context) : base(context)
		{
		}

		// Token: 0x0600069E RID: 1694 RVA: 0x0002F07C File Offset: 0x0002D27C
		public void CreateWidgets()
		{
			this._widget = this;
			this._widget_0 = new GridWidget(base.Context);
			this._widget.AddChild(this._widget_0);
			this._widget_1 = new ListPanel(base.Context);
			this._widget.AddChild(this._widget_1);
			this._widget_1_0 = new Widget(base.Context);
			this._widget_1.AddChild(this._widget_1_0);
			this._widget_1_1 = new TextWidget(base.Context);
			this._widget_1.AddChild(this._widget_1_1);
			this._widget_2 = new Widget(base.Context);
			this._widget.AddChild(this._widget_2);
			this._widget_2_0 = new InputKeyVisualWidget(base.Context);
			this._widget_2.AddChild(this._widget_2_0);
			this._widget_3 = new SliderWidget(base.Context);
			this._widget.AddChild(this._widget_3);
			this._widget_3_0 = new Widget(base.Context);
			this._widget_3.AddChild(this._widget_3_0);
			this._widget_3_1 = new Widget(base.Context);
			this._widget_3.AddChild(this._widget_3_1);
			this._widget_4 = new Widget(base.Context);
			this._widget.AddChild(this._widget_4);
			this._widget_5 = new ImageIdentifierWidget(base.Context);
			this._widget.AddChild(this._widget_5);
			this._widget_6 = new GridWidget(base.Context);
			this._widget.AddChild(this._widget_6);
		}

		// Token: 0x0600069F RID: 1695 RVA: 0x0002F228 File Offset: 0x0002D428
		public void SetIds()
		{
			this._widget_0.Id = "PrimaryColorGrid";
			this._widget_3_0.Id = "Filler";
			this._widget_3_1.Id = "SliderHandle";
			this._widget_4.Id = "SelectionFrame";
		}

		// Token: 0x060006A0 RID: 1696 RVA: 0x0002F278 File Offset: 0x0002D478
		public void SetAttributes()
		{
			base.WidthSizePolicy = 0;
			base.HeightSizePolicy = 0;
			base.SuggestedWidth = 109.5f;
			base.SuggestedHeight = 163.5f;
			this._widget_0.WidthSizePolicy = 2;
			this._widget_0.HeightSizePolicy = 2;
			this._widget_0.HorizontalAlignment = 1;
			this._widget_0.VerticalAlignment = 0;
			this._widget_0.MarginTop = 50f;
			this._widget_0.ColumnCount = 2;
			this._widget_0.DefaultCellHeight = 46f;
			this._widget_0.DefaultCellWidth = 46f;
			this._widget_1.WidthSizePolicy = 2;
			this._widget_1.HeightSizePolicy = 2;
			this._widget_1.MarginLeft = 15f;
			this._widget_1.MarginTop = 10f;
			this._widget_1_0.WidthSizePolicy = 0;
			this._widget_1_0.HeightSizePolicy = 0;
			this._widget_1_0.SuggestedWidth = 30f;
			this._widget_1_0.SuggestedHeight = 30f;
			this._widget_1_0.VerticalAlignment = 1;
			this._widget_1_0.Sprite = base.Context.SpriteData.GetSprite("General\\Icons\\Morale@2x");
			this._widget_1_1.WidthSizePolicy = 2;
			this._widget_1_1.HeightSizePolicy = 2;
			this._widget_1_1.MarginLeft = 1f;
			this._widget_1_1.MarginTop = 8f;
			this._widget_1_1.VerticalAlignment = 1;
			this._widget_1_1.Brush = base.Context.GetBrush("Order.Troop.CountText");
			this._widget_1_1.Brush.FontSize = 20;
			this._widget_2.WidthSizePolicy = 2;
			this._widget_2.HeightSizePolicy = 2;
			this._widget_2.HorizontalAlignment = 2;
			this._widget_2.MarginTop = 5f;
			this._widget_2.PositionXOffset = 15f;
			this._widget_2_0.WidthSizePolicy = 0;
			this._widget_2_0.HeightSizePolicy = 0;
			this._widget_2_0.SuggestedWidth = 60f;
			this._widget_2_0.SuggestedHeight = 60f;
			this._widget_3.WidthSizePolicy = 0;
			this._widget_3.HeightSizePolicy = 0;
			this._widget_3.SuggestedHeight = 3f;
			this._widget_3.SuggestedWidth = 65f;
			this._widget_3.HorizontalAlignment = 1;
			this._widget_3.VerticalAlignment = 2;
			this._widget_3.MarginBottom = 13f;
			this._widget_3.MarginLeft = 3f;
			this._widget_3.DoNotUpdateHandleSize = true;
			this._widget_3.Filler = this._widget_3_0;
			this._widget_3.Handle = this._widget_3_1;
			this._widget_3.MaxValueFloat = 1f;
			this._widget_3.MinValueFloat = 0f;
			this._widget_3.AlignmentAxis = 0;
			this._widget_3_0.DoNotAcceptEvents = true;
			this._widget_3_0.WidthSizePolicy = 0;
			this._widget_3_0.HeightSizePolicy = 0;
			this._widget_3_0.SuggestedHeight = 3f;
			this._widget_3_0.SuggestedWidth = 100f;
			this._widget_3_0.VerticalAlignment = 2;
			this._widget_3_0.Sprite = base.Context.SpriteData.GetSprite("BlankWhiteSquare_9");
			this._widget_3_1.WidthSizePolicy = 0;
			this._widget_3_1.HeightSizePolicy = 0;
			this._widget_3_1.SuggestedWidth = 2f;
			this._widget_3_1.SuggestedHeight = 2f;
			this._widget_3_1.HorizontalAlignment = 0;
			this._widget_3_1.VerticalAlignment = 1;
			this._widget_3_1.IsVisible = false;
			this._widget_4.WidthSizePolicy = 1;
			this._widget_4.HeightSizePolicy = 1;
			this._widget_4.Sprite = base.Context.SpriteData.GetSprite("order_formation_selector_9");
			this._widget_4.Color = new Color(0f, 1f, 0f, 1f);
			this._widget_4.IsVisible = false;
			this._widget_5.DoNotAcceptEvents = true;
			this._widget_5.WidthSizePolicy = 0;
			this._widget_5.HeightSizePolicy = 0;
			this._widget_5.SuggestedWidth = 35f;
			this._widget_5.SuggestedHeight = 25f;
			this._widget_5.HorizontalAlignment = 1;
			this._widget_5.VerticalAlignment = 0;
			this._widget_5.PositionYOffset = -22f;
			this._widget_6.WidthSizePolicy = 2;
			this._widget_6.HeightSizePolicy = 2;
			this._widget_6.HorizontalAlignment = 0;
			this._widget_6.VerticalAlignment = 2;
			this._widget_6.MarginBottom = 37f;
			this._widget_6.MarginLeft = 17f;
			this._widget_6.ColumnCount = 2;
			this._widget_6.DefaultCellHeight = 20f;
			this._widget_6.DefaultCellWidth = 20f;
		}

		// Token: 0x060006A1 RID: 1697 RVA: 0x0002F784 File Offset: 0x0002D984
		public void DestroyDataSource()
		{
			if (this._datasource_Root != null)
			{
				this._datasource_Root.PropertyChanged -= this.ViewModelPropertyChangedListenerOf_datasource_Root;
				this._datasource_Root.PropertyChangedWithValue -= new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithBoolValue -= new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithIntValue -= new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithFloatValue -= new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithUIntValue -= new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithColorValue -= new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithDoubleValue -= new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithVec2Value -= new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root);
				this._widget.PropertyChanged -= this.PropertyChangedListenerOf_widget;
				this._widget.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget;
				this._widget.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget;
				this._widget.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget;
				this._widget.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget;
				this._widget.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget;
				this._widget.intPropertyChanged -= this.intPropertyChangedListenerOf_widget;
				this._widget.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget;
				this._widget.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget;
				this._widget_1_1.PropertyChanged -= this.PropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_1_1;
				this._widget_2.PropertyChanged -= this.PropertyChangedListenerOf_widget_2;
				this._widget_2.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_2;
				this._widget_2.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_2;
				this._widget_2.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_2;
				this._widget_2.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_2;
				this._widget_2.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_2;
				this._widget_2.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_2;
				this._widget_2.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_2;
				this._widget_2.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_2;
				this._widget_3.PropertyChanged -= this.PropertyChangedListenerOf_widget_3;
				this._widget_3.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_3;
				this._widget_3.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_3;
				this._widget_3.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_3;
				this._widget_3.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_3;
				this._widget_3.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_3;
				this._widget_3.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_3;
				this._widget_3.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_3;
				this._widget_3.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_3;
				if (this._datasource_Root_ActiveFormationClasses != null)
				{
					this._datasource_Root_ActiveFormationClasses.ListChanged -= new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFormationClassesChanged);
					for (int i = this._widget_0.ChildCount - 1; i >= 0; i--)
					{
						Widget child = this._widget_0.GetChild(i);
						((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate)child).OnBeforeRemovedChild(child);
						((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate)this._widget_0.GetChild(i)).DestroyDataSource();
					}
					this._datasource_Root_ActiveFormationClasses = null;
				}
				if (this._datasource_Root_SelectionKey != null)
				{
					this._datasource_Root_SelectionKey.PropertyChanged -= this.ViewModelPropertyChangedListenerOf_datasource_Root_SelectionKey;
					this._datasource_Root_SelectionKey.PropertyChangedWithValue -= new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithBoolValue -= new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithIntValue -= new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithFloatValue -= new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithUIntValue -= new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithColorValue -= new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithDoubleValue -= new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithVec2Value -= new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_SelectionKey);
					this._widget_2_0.PropertyChanged -= this.PropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_2_0;
					this._datasource_Root_SelectionKey = null;
				}
				if (this._datasource_Root_CommanderImageIdentifier != null)
				{
					this._datasource_Root_CommanderImageIdentifier.PropertyChanged -= this.ViewModelPropertyChangedListenerOf_datasource_Root_CommanderImageIdentifier;
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithValue -= new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithBoolValue -= new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithIntValue -= new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithFloatValue -= new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithUIntValue -= new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithColorValue -= new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithDoubleValue -= new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithVec2Value -= new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._widget_5.PropertyChanged -= this.PropertyChangedListenerOf_widget_5;
					this._widget_5.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_5;
					this._widget_5.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_5;
					this._widget_5.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_5;
					this._widget_5.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_5;
					this._widget_5.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_5;
					this._widget_5.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_5;
					this._widget_5.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_5;
					this._widget_5.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_5;
					this._datasource_Root_CommanderImageIdentifier = null;
				}
				if (this._datasource_Root_ActiveFilters != null)
				{
					this._datasource_Root_ActiveFilters.ListChanged -= new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFiltersChanged);
					for (int j = this._widget_6.ChildCount - 1; j >= 0; j--)
					{
						Widget child2 = this._widget_6.GetChild(j);
						((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate)child2).OnBeforeRemovedChild(child2);
						((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate)this._widget_6.GetChild(j)).DestroyDataSource();
					}
					this._datasource_Root_ActiveFilters = null;
				}
				this._datasource_Root = null;
			}
		}

		// Token: 0x060006A2 RID: 1698 RVA: 0x0002FFE8 File Offset: 0x0002E1E8
		public void SetDataSource(OrderTroopItemVM dataSource)
		{
			this.RefreshDataSource_datasource_Root(dataSource);
		}

		// Token: 0x060006A3 RID: 1699 RVA: 0x0002FFF1 File Offset: 0x0002E1F1
		private void PropertyChangedListenerOf_widget(PropertyOwnerObject propertyOwnerObject, string propertyName, object e)
		{
			this.HandleWidgetPropertyChangeOf_widget(propertyName);
		}

		// Token: 0x060006A4 RID: 1700 RVA: 0x0002FFFA File Offset: 0x0002E1FA
		private void boolPropertyChangedListenerOf_widget(PropertyOwnerObject propertyOwnerObject, string propertyName, bool e)
		{
			this.HandleWidgetPropertyChangeOf_widget(propertyName);
		}

		// Token: 0x060006A5 RID: 1701 RVA: 0x00030003 File Offset: 0x0002E203
		private void floatPropertyChangedListenerOf_widget(PropertyOwnerObject propertyOwnerObject, string propertyName, float e)
		{
			this.HandleWidgetPropertyChangeOf_widget(propertyName);
		}

		// Token: 0x060006A6 RID: 1702 RVA: 0x0003000C File Offset: 0x0002E20C
		private void Vec2PropertyChangedListenerOf_widget(PropertyOwnerObject propertyOwnerObject, string propertyName, Vec2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget(propertyName);
		}

		// Token: 0x060006A7 RID: 1703 RVA: 0x00030015 File Offset: 0x0002E215
		private void Vector2PropertyChangedListenerOf_widget(PropertyOwnerObject propertyOwnerObject, string propertyName, Vector2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget(propertyName);
		}

		// Token: 0x060006A8 RID: 1704 RVA: 0x0003001E File Offset: 0x0002E21E
		private void doublePropertyChangedListenerOf_widget(PropertyOwnerObject propertyOwnerObject, string propertyName, double e)
		{
			this.HandleWidgetPropertyChangeOf_widget(propertyName);
		}

		// Token: 0x060006A9 RID: 1705 RVA: 0x00030027 File Offset: 0x0002E227
		private void intPropertyChangedListenerOf_widget(PropertyOwnerObject propertyOwnerObject, string propertyName, int e)
		{
			this.HandleWidgetPropertyChangeOf_widget(propertyName);
		}

		// Token: 0x060006AA RID: 1706 RVA: 0x00030030 File Offset: 0x0002E230
		private void uintPropertyChangedListenerOf_widget(PropertyOwnerObject propertyOwnerObject, string propertyName, uint e)
		{
			this.HandleWidgetPropertyChangeOf_widget(propertyName);
		}

		// Token: 0x060006AB RID: 1707 RVA: 0x00030039 File Offset: 0x0002E239
		private void ColorPropertyChangedListenerOf_widget(PropertyOwnerObject propertyOwnerObject, string propertyName, Color e)
		{
			this.HandleWidgetPropertyChangeOf_widget(propertyName);
		}

		// Token: 0x060006AC RID: 1708 RVA: 0x00030042 File Offset: 0x0002E242
		private void HandleWidgetPropertyChangeOf_widget(string propertyName)
		{
			propertyName == "FormationClass";
		}

		// Token: 0x060006AD RID: 1709 RVA: 0x00030050 File Offset: 0x0002E250
		private void PropertyChangedListenerOf_widget_1_1(PropertyOwnerObject propertyOwnerObject, string propertyName, object e)
		{
			this.HandleWidgetPropertyChangeOf_widget_1_1(propertyName);
		}

		// Token: 0x060006AE RID: 1710 RVA: 0x00030059 File Offset: 0x0002E259
		private void boolPropertyChangedListenerOf_widget_1_1(PropertyOwnerObject propertyOwnerObject, string propertyName, bool e)
		{
			this.HandleWidgetPropertyChangeOf_widget_1_1(propertyName);
		}

		// Token: 0x060006AF RID: 1711 RVA: 0x00030062 File Offset: 0x0002E262
		private void floatPropertyChangedListenerOf_widget_1_1(PropertyOwnerObject propertyOwnerObject, string propertyName, float e)
		{
			this.HandleWidgetPropertyChangeOf_widget_1_1(propertyName);
		}

		// Token: 0x060006B0 RID: 1712 RVA: 0x0003006B File Offset: 0x0002E26B
		private void Vec2PropertyChangedListenerOf_widget_1_1(PropertyOwnerObject propertyOwnerObject, string propertyName, Vec2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_1_1(propertyName);
		}

		// Token: 0x060006B1 RID: 1713 RVA: 0x00030074 File Offset: 0x0002E274
		private void Vector2PropertyChangedListenerOf_widget_1_1(PropertyOwnerObject propertyOwnerObject, string propertyName, Vector2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_1_1(propertyName);
		}

		// Token: 0x060006B2 RID: 1714 RVA: 0x0003007D File Offset: 0x0002E27D
		private void doublePropertyChangedListenerOf_widget_1_1(PropertyOwnerObject propertyOwnerObject, string propertyName, double e)
		{
			this.HandleWidgetPropertyChangeOf_widget_1_1(propertyName);
		}

		// Token: 0x060006B3 RID: 1715 RVA: 0x00030086 File Offset: 0x0002E286
		private void intPropertyChangedListenerOf_widget_1_1(PropertyOwnerObject propertyOwnerObject, string propertyName, int e)
		{
			this.HandleWidgetPropertyChangeOf_widget_1_1(propertyName);
		}

		// Token: 0x060006B4 RID: 1716 RVA: 0x0003008F File Offset: 0x0002E28F
		private void uintPropertyChangedListenerOf_widget_1_1(PropertyOwnerObject propertyOwnerObject, string propertyName, uint e)
		{
			this.HandleWidgetPropertyChangeOf_widget_1_1(propertyName);
		}

		// Token: 0x060006B5 RID: 1717 RVA: 0x00030098 File Offset: 0x0002E298
		private void ColorPropertyChangedListenerOf_widget_1_1(PropertyOwnerObject propertyOwnerObject, string propertyName, Color e)
		{
			this.HandleWidgetPropertyChangeOf_widget_1_1(propertyName);
		}

		// Token: 0x060006B6 RID: 1718 RVA: 0x000300A4 File Offset: 0x0002E2A4
		private void HandleWidgetPropertyChangeOf_widget_1_1(string propertyName)
		{
			if (propertyName == "IntText")
			{
				this._datasource_Root.Morale = this._widget_1_1.IntText;
				return;
			}
			if (propertyName == "IsVisible")
			{
				this._datasource_Root.HaveTroops = this._widget_1_1.IsVisible;
				return;
			}
		}

		// Token: 0x060006B7 RID: 1719 RVA: 0x000300F9 File Offset: 0x0002E2F9
		private void PropertyChangedListenerOf_widget_2(PropertyOwnerObject propertyOwnerObject, string propertyName, object e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2(propertyName);
		}

		// Token: 0x060006B8 RID: 1720 RVA: 0x00030102 File Offset: 0x0002E302
		private void boolPropertyChangedListenerOf_widget_2(PropertyOwnerObject propertyOwnerObject, string propertyName, bool e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2(propertyName);
		}

		// Token: 0x060006B9 RID: 1721 RVA: 0x0003010B File Offset: 0x0002E30B
		private void floatPropertyChangedListenerOf_widget_2(PropertyOwnerObject propertyOwnerObject, string propertyName, float e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2(propertyName);
		}

		// Token: 0x060006BA RID: 1722 RVA: 0x00030114 File Offset: 0x0002E314
		private void Vec2PropertyChangedListenerOf_widget_2(PropertyOwnerObject propertyOwnerObject, string propertyName, Vec2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2(propertyName);
		}

		// Token: 0x060006BB RID: 1723 RVA: 0x0003011D File Offset: 0x0002E31D
		private void Vector2PropertyChangedListenerOf_widget_2(PropertyOwnerObject propertyOwnerObject, string propertyName, Vector2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2(propertyName);
		}

		// Token: 0x060006BC RID: 1724 RVA: 0x00030126 File Offset: 0x0002E326
		private void doublePropertyChangedListenerOf_widget_2(PropertyOwnerObject propertyOwnerObject, string propertyName, double e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2(propertyName);
		}

		// Token: 0x060006BD RID: 1725 RVA: 0x0003012F File Offset: 0x0002E32F
		private void intPropertyChangedListenerOf_widget_2(PropertyOwnerObject propertyOwnerObject, string propertyName, int e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2(propertyName);
		}

		// Token: 0x060006BE RID: 1726 RVA: 0x00030138 File Offset: 0x0002E338
		private void uintPropertyChangedListenerOf_widget_2(PropertyOwnerObject propertyOwnerObject, string propertyName, uint e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2(propertyName);
		}

		// Token: 0x060006BF RID: 1727 RVA: 0x00030141 File Offset: 0x0002E341
		private void ColorPropertyChangedListenerOf_widget_2(PropertyOwnerObject propertyOwnerObject, string propertyName, Color e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2(propertyName);
		}

		// Token: 0x060006C0 RID: 1728 RVA: 0x0003014A File Offset: 0x0002E34A
		private void HandleWidgetPropertyChangeOf_widget_2(string propertyName)
		{
			if (propertyName == "IsVisible")
			{
				this._datasource_Root.HaveTroops = this._widget_2.IsVisible;
				return;
			}
		}

		// Token: 0x060006C1 RID: 1729 RVA: 0x00030170 File Offset: 0x0002E370
		private void PropertyChangedListenerOf_widget_3(PropertyOwnerObject propertyOwnerObject, string propertyName, object e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3(propertyName);
		}

		// Token: 0x060006C2 RID: 1730 RVA: 0x00030179 File Offset: 0x0002E379
		private void boolPropertyChangedListenerOf_widget_3(PropertyOwnerObject propertyOwnerObject, string propertyName, bool e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3(propertyName);
		}

		// Token: 0x060006C3 RID: 1731 RVA: 0x00030182 File Offset: 0x0002E382
		private void floatPropertyChangedListenerOf_widget_3(PropertyOwnerObject propertyOwnerObject, string propertyName, float e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3(propertyName);
		}

		// Token: 0x060006C4 RID: 1732 RVA: 0x0003018B File Offset: 0x0002E38B
		private void Vec2PropertyChangedListenerOf_widget_3(PropertyOwnerObject propertyOwnerObject, string propertyName, Vec2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3(propertyName);
		}

		// Token: 0x060006C5 RID: 1733 RVA: 0x00030194 File Offset: 0x0002E394
		private void Vector2PropertyChangedListenerOf_widget_3(PropertyOwnerObject propertyOwnerObject, string propertyName, Vector2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3(propertyName);
		}

		// Token: 0x060006C6 RID: 1734 RVA: 0x0003019D File Offset: 0x0002E39D
		private void doublePropertyChangedListenerOf_widget_3(PropertyOwnerObject propertyOwnerObject, string propertyName, double e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3(propertyName);
		}

		// Token: 0x060006C7 RID: 1735 RVA: 0x000301A6 File Offset: 0x0002E3A6
		private void intPropertyChangedListenerOf_widget_3(PropertyOwnerObject propertyOwnerObject, string propertyName, int e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3(propertyName);
		}

		// Token: 0x060006C8 RID: 1736 RVA: 0x000301AF File Offset: 0x0002E3AF
		private void uintPropertyChangedListenerOf_widget_3(PropertyOwnerObject propertyOwnerObject, string propertyName, uint e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3(propertyName);
		}

		// Token: 0x060006C9 RID: 1737 RVA: 0x000301B8 File Offset: 0x0002E3B8
		private void ColorPropertyChangedListenerOf_widget_3(PropertyOwnerObject propertyOwnerObject, string propertyName, Color e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3(propertyName);
		}

		// Token: 0x060006CA RID: 1738 RVA: 0x000301C4 File Offset: 0x0002E3C4
		private void HandleWidgetPropertyChangeOf_widget_3(string propertyName)
		{
			if (propertyName == "ValueFloat")
			{
				this._datasource_Root.AmmoPercentage = this._widget_3.ValueFloat;
				return;
			}
			if (propertyName == "IsVisible")
			{
				this._datasource_Root.IsAmmoAvailable = this._widget_3.IsVisible;
				return;
			}
		}

		// Token: 0x060006CB RID: 1739 RVA: 0x00030219 File Offset: 0x0002E419
		private void PropertyChangedListenerOf_widget_2_0(PropertyOwnerObject propertyOwnerObject, string propertyName, object e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2_0(propertyName);
		}

		// Token: 0x060006CC RID: 1740 RVA: 0x00030222 File Offset: 0x0002E422
		private void boolPropertyChangedListenerOf_widget_2_0(PropertyOwnerObject propertyOwnerObject, string propertyName, bool e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2_0(propertyName);
		}

		// Token: 0x060006CD RID: 1741 RVA: 0x0003022B File Offset: 0x0002E42B
		private void floatPropertyChangedListenerOf_widget_2_0(PropertyOwnerObject propertyOwnerObject, string propertyName, float e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2_0(propertyName);
		}

		// Token: 0x060006CE RID: 1742 RVA: 0x00030234 File Offset: 0x0002E434
		private void Vec2PropertyChangedListenerOf_widget_2_0(PropertyOwnerObject propertyOwnerObject, string propertyName, Vec2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2_0(propertyName);
		}

		// Token: 0x060006CF RID: 1743 RVA: 0x0003023D File Offset: 0x0002E43D
		private void Vector2PropertyChangedListenerOf_widget_2_0(PropertyOwnerObject propertyOwnerObject, string propertyName, Vector2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2_0(propertyName);
		}

		// Token: 0x060006D0 RID: 1744 RVA: 0x00030246 File Offset: 0x0002E446
		private void doublePropertyChangedListenerOf_widget_2_0(PropertyOwnerObject propertyOwnerObject, string propertyName, double e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2_0(propertyName);
		}

		// Token: 0x060006D1 RID: 1745 RVA: 0x0003024F File Offset: 0x0002E44F
		private void intPropertyChangedListenerOf_widget_2_0(PropertyOwnerObject propertyOwnerObject, string propertyName, int e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2_0(propertyName);
		}

		// Token: 0x060006D2 RID: 1746 RVA: 0x00030258 File Offset: 0x0002E458
		private void uintPropertyChangedListenerOf_widget_2_0(PropertyOwnerObject propertyOwnerObject, string propertyName, uint e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2_0(propertyName);
		}

		// Token: 0x060006D3 RID: 1747 RVA: 0x00030261 File Offset: 0x0002E461
		private void ColorPropertyChangedListenerOf_widget_2_0(PropertyOwnerObject propertyOwnerObject, string propertyName, Color e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2_0(propertyName);
		}

		// Token: 0x060006D4 RID: 1748 RVA: 0x0003026A File Offset: 0x0002E46A
		private void HandleWidgetPropertyChangeOf_widget_2_0(string propertyName)
		{
			if (propertyName == "KeyID")
			{
				this._datasource_Root_SelectionKey.KeyID = this._widget_2_0.KeyID;
				return;
			}
		}

		// Token: 0x060006D5 RID: 1749 RVA: 0x00030290 File Offset: 0x0002E490
		private void PropertyChangedListenerOf_widget_5(PropertyOwnerObject propertyOwnerObject, string propertyName, object e)
		{
			this.HandleWidgetPropertyChangeOf_widget_5(propertyName);
		}

		// Token: 0x060006D6 RID: 1750 RVA: 0x00030299 File Offset: 0x0002E499
		private void boolPropertyChangedListenerOf_widget_5(PropertyOwnerObject propertyOwnerObject, string propertyName, bool e)
		{
			this.HandleWidgetPropertyChangeOf_widget_5(propertyName);
		}

		// Token: 0x060006D7 RID: 1751 RVA: 0x000302A2 File Offset: 0x0002E4A2
		private void floatPropertyChangedListenerOf_widget_5(PropertyOwnerObject propertyOwnerObject, string propertyName, float e)
		{
			this.HandleWidgetPropertyChangeOf_widget_5(propertyName);
		}

		// Token: 0x060006D8 RID: 1752 RVA: 0x000302AB File Offset: 0x0002E4AB
		private void Vec2PropertyChangedListenerOf_widget_5(PropertyOwnerObject propertyOwnerObject, string propertyName, Vec2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_5(propertyName);
		}

		// Token: 0x060006D9 RID: 1753 RVA: 0x000302B4 File Offset: 0x0002E4B4
		private void Vector2PropertyChangedListenerOf_widget_5(PropertyOwnerObject propertyOwnerObject, string propertyName, Vector2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_5(propertyName);
		}

		// Token: 0x060006DA RID: 1754 RVA: 0x000302BD File Offset: 0x0002E4BD
		private void doublePropertyChangedListenerOf_widget_5(PropertyOwnerObject propertyOwnerObject, string propertyName, double e)
		{
			this.HandleWidgetPropertyChangeOf_widget_5(propertyName);
		}

		// Token: 0x060006DB RID: 1755 RVA: 0x000302C6 File Offset: 0x0002E4C6
		private void intPropertyChangedListenerOf_widget_5(PropertyOwnerObject propertyOwnerObject, string propertyName, int e)
		{
			this.HandleWidgetPropertyChangeOf_widget_5(propertyName);
		}

		// Token: 0x060006DC RID: 1756 RVA: 0x000302CF File Offset: 0x0002E4CF
		private void uintPropertyChangedListenerOf_widget_5(PropertyOwnerObject propertyOwnerObject, string propertyName, uint e)
		{
			this.HandleWidgetPropertyChangeOf_widget_5(propertyName);
		}

		// Token: 0x060006DD RID: 1757 RVA: 0x000302D8 File Offset: 0x0002E4D8
		private void ColorPropertyChangedListenerOf_widget_5(PropertyOwnerObject propertyOwnerObject, string propertyName, Color e)
		{
			this.HandleWidgetPropertyChangeOf_widget_5(propertyName);
		}

		// Token: 0x060006DE RID: 1758 RVA: 0x000302E1 File Offset: 0x0002E4E1
		private void HandleWidgetPropertyChangeOf_widget_5(string propertyName)
		{
			if (propertyName == "AdditionalArgs")
			{
				return;
			}
			if (propertyName == "ImageId")
			{
				return;
			}
			propertyName == "ImageTypeCode";
		}

		// Token: 0x060006DF RID: 1759 RVA: 0x0003030B File Offset: 0x0002E50B
		private void ViewModelPropertyChangedListenerOf_datasource_Root(object sender, PropertyChangedEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root(e.PropertyName);
		}

		// Token: 0x060006E0 RID: 1760 RVA: 0x00030319 File Offset: 0x0002E519
		private void ViewModelPropertyChangedWithValueListenerOf_datasource_Root(object sender, PropertyChangedWithValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root(e.PropertyName);
		}

		// Token: 0x060006E1 RID: 1761 RVA: 0x00030327 File Offset: 0x0002E527
		private void ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root(object sender, PropertyChangedWithBoolValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root(e.PropertyName);
		}

		// Token: 0x060006E2 RID: 1762 RVA: 0x00030335 File Offset: 0x0002E535
		private void ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root(object sender, PropertyChangedWithIntValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root(e.PropertyName);
		}

		// Token: 0x060006E3 RID: 1763 RVA: 0x00030343 File Offset: 0x0002E543
		private void ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root(object sender, PropertyChangedWithFloatValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root(e.PropertyName);
		}

		// Token: 0x060006E4 RID: 1764 RVA: 0x00030351 File Offset: 0x0002E551
		private void ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root(object sender, PropertyChangedWithUIntValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root(e.PropertyName);
		}

		// Token: 0x060006E5 RID: 1765 RVA: 0x0003035F File Offset: 0x0002E55F
		private void ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root(object sender, PropertyChangedWithColorValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root(e.PropertyName);
		}

		// Token: 0x060006E6 RID: 1766 RVA: 0x0003036D File Offset: 0x0002E56D
		private void ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root(object sender, PropertyChangedWithDoubleValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root(e.PropertyName);
		}

		// Token: 0x060006E7 RID: 1767 RVA: 0x0003037B File Offset: 0x0002E57B
		private void ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root(object sender, PropertyChangedWithVec2ValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root(e.PropertyName);
		}

		// Token: 0x060006E8 RID: 1768 RVA: 0x0003038C File Offset: 0x0002E58C
		private void HandleViewModelPropertyChangeOf_datasource_Root(string propertyName)
		{
			if (propertyName == "ActiveFormationClasses")
			{
				this.RefreshDataSource_datasource_Root_ActiveFormationClasses(this._datasource_Root.ActiveFormationClasses);
				return;
			}
			if (propertyName == "SelectionKey")
			{
				this.RefreshDataSource_datasource_Root_SelectionKey(this._datasource_Root.SelectionKey);
				return;
			}
			if (propertyName == "CommanderImageIdentifier")
			{
				this.RefreshDataSource_datasource_Root_CommanderImageIdentifier(this._datasource_Root.CommanderImageIdentifier);
				return;
			}
			if (propertyName == "ActiveFilters")
			{
				this.RefreshDataSource_datasource_Root_ActiveFilters(this._datasource_Root.ActiveFilters);
				return;
			}
			if (propertyName == "OrderOfBattleFormationClass")
			{
				return;
			}
			if (propertyName == "Morale")
			{
				this._widget_1_1.IntText = this._datasource_Root.Morale;
				return;
			}
			if (propertyName == "HaveTroops")
			{
				this._widget_1_1.IsVisible = this._datasource_Root.HaveTroops;
				this._widget_2.IsVisible = this._datasource_Root.HaveTroops;
				return;
			}
			if (propertyName == "AmmoPercentage")
			{
				this._widget_3.ValueFloat = this._datasource_Root.AmmoPercentage;
				return;
			}
			if (propertyName == "IsAmmoAvailable")
			{
				this._widget_3.IsVisible = this._datasource_Root.IsAmmoAvailable;
				return;
			}
		}

		// Token: 0x060006E9 RID: 1769 RVA: 0x000304C9 File Offset: 0x0002E6C9
		private void ViewModelPropertyChangedListenerOf_datasource_Root_SelectionKey(object sender, PropertyChangedEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(e.PropertyName);
		}

		// Token: 0x060006EA RID: 1770 RVA: 0x000304D7 File Offset: 0x0002E6D7
		private void ViewModelPropertyChangedWithValueListenerOf_datasource_Root_SelectionKey(object sender, PropertyChangedWithValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(e.PropertyName);
		}

		// Token: 0x060006EB RID: 1771 RVA: 0x000304E5 File Offset: 0x0002E6E5
		private void ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_SelectionKey(object sender, PropertyChangedWithBoolValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(e.PropertyName);
		}

		// Token: 0x060006EC RID: 1772 RVA: 0x000304F3 File Offset: 0x0002E6F3
		private void ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_SelectionKey(object sender, PropertyChangedWithIntValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(e.PropertyName);
		}

		// Token: 0x060006ED RID: 1773 RVA: 0x00030501 File Offset: 0x0002E701
		private void ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_SelectionKey(object sender, PropertyChangedWithFloatValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(e.PropertyName);
		}

		// Token: 0x060006EE RID: 1774 RVA: 0x0003050F File Offset: 0x0002E70F
		private void ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_SelectionKey(object sender, PropertyChangedWithUIntValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(e.PropertyName);
		}

		// Token: 0x060006EF RID: 1775 RVA: 0x0003051D File Offset: 0x0002E71D
		private void ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_SelectionKey(object sender, PropertyChangedWithColorValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(e.PropertyName);
		}

		// Token: 0x060006F0 RID: 1776 RVA: 0x0003052B File Offset: 0x0002E72B
		private void ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_SelectionKey(object sender, PropertyChangedWithDoubleValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(e.PropertyName);
		}

		// Token: 0x060006F1 RID: 1777 RVA: 0x00030539 File Offset: 0x0002E739
		private void ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_SelectionKey(object sender, PropertyChangedWithVec2ValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(e.PropertyName);
		}

		// Token: 0x060006F2 RID: 1778 RVA: 0x00030547 File Offset: 0x0002E747
		private void HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(string propertyName)
		{
			if (propertyName == "KeyID")
			{
				this._widget_2_0.KeyID = this._datasource_Root_SelectionKey.KeyID;
				return;
			}
		}

		// Token: 0x060006F3 RID: 1779 RVA: 0x0003056D File Offset: 0x0002E76D
		private void ViewModelPropertyChangedListenerOf_datasource_Root_CommanderImageIdentifier(object sender, PropertyChangedEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(e.PropertyName);
		}

		// Token: 0x060006F4 RID: 1780 RVA: 0x0003057B File Offset: 0x0002E77B
		private void ViewModelPropertyChangedWithValueListenerOf_datasource_Root_CommanderImageIdentifier(object sender, PropertyChangedWithValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(e.PropertyName);
		}

		// Token: 0x060006F5 RID: 1781 RVA: 0x00030589 File Offset: 0x0002E789
		private void ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_CommanderImageIdentifier(object sender, PropertyChangedWithBoolValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(e.PropertyName);
		}

		// Token: 0x060006F6 RID: 1782 RVA: 0x00030597 File Offset: 0x0002E797
		private void ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_CommanderImageIdentifier(object sender, PropertyChangedWithIntValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(e.PropertyName);
		}

		// Token: 0x060006F7 RID: 1783 RVA: 0x000305A5 File Offset: 0x0002E7A5
		private void ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_CommanderImageIdentifier(object sender, PropertyChangedWithFloatValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(e.PropertyName);
		}

		// Token: 0x060006F8 RID: 1784 RVA: 0x000305B3 File Offset: 0x0002E7B3
		private void ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_CommanderImageIdentifier(object sender, PropertyChangedWithUIntValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(e.PropertyName);
		}

		// Token: 0x060006F9 RID: 1785 RVA: 0x000305C1 File Offset: 0x0002E7C1
		private void ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_CommanderImageIdentifier(object sender, PropertyChangedWithColorValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(e.PropertyName);
		}

		// Token: 0x060006FA RID: 1786 RVA: 0x000305CF File Offset: 0x0002E7CF
		private void ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_CommanderImageIdentifier(object sender, PropertyChangedWithDoubleValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(e.PropertyName);
		}

		// Token: 0x060006FB RID: 1787 RVA: 0x000305DD File Offset: 0x0002E7DD
		private void ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_CommanderImageIdentifier(object sender, PropertyChangedWithVec2ValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(e.PropertyName);
		}

		// Token: 0x060006FC RID: 1788 RVA: 0x000305EC File Offset: 0x0002E7EC
		private void HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(string propertyName)
		{
			if (propertyName == "AdditionalArgs")
			{
				this._widget_5.AdditionalArgs = this._datasource_Root_CommanderImageIdentifier.AdditionalArgs;
				return;
			}
			if (propertyName == "Id")
			{
				this._widget_5.ImageId = this._datasource_Root_CommanderImageIdentifier.Id;
				return;
			}
			if (propertyName == "ImageTypeCode")
			{
				this._widget_5.ImageTypeCode = this._datasource_Root_CommanderImageIdentifier.ImageTypeCode;
				return;
			}
		}

		// Token: 0x060006FD RID: 1789 RVA: 0x00030668 File Offset: 0x0002E868
		public void OnList_datasource_Root_ActiveFormationClassesChanged(object sender, ListChangedEventArgs e)
		{
			switch (e.ListChangedType)
			{
			case 0:
				for (int i = this._widget_0.ChildCount - 1; i >= 0; i--)
				{
					Widget child = this._widget_0.GetChild(i);
					((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate)child).OnBeforeRemovedChild(child);
					Widget child2 = this._widget_0.GetChild(i);
					((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate)child2).SetDataSource(null);
					this._widget_0.RemoveChild(child2);
				}
				return;
			case 1:
				for (int j = 0; j < this._datasource_Root_ActiveFormationClasses.Count; j++)
				{
					OrderTroopItemFormationClassVM bindingObject = this._datasource_Root_ActiveFormationClasses[j];
					this._widget_0.FindChild((Widget widget) => widget.GetComponent<GeneratedWidgetData>().Data == bindingObject).SetSiblingIndex(j, false);
				}
				return;
			case 2:
			{
				OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate = new OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate(base.Context);
				GeneratedWidgetData generatedWidgetData = new GeneratedWidgetData(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate);
				OrderTroopItemFormationClassVM orderTroopItemFormationClassVM = this._datasource_Root_ActiveFormationClasses[e.NewIndex];
				generatedWidgetData.Data = orderTroopItemFormationClassVM;
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate.AddComponent(generatedWidgetData);
				this._widget_0.AddChildAtIndex(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate, e.NewIndex);
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate.CreateWidgets();
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate.SetIds();
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate.SetAttributes();
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate.SetDataSource(orderTroopItemFormationClassVM);
				return;
			}
			case 3:
			{
				Widget child3 = this._widget_0.GetChild(e.NewIndex);
				((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate)child3).OnBeforeRemovedChild(child3);
				return;
			}
			case 4:
			{
				Widget child4 = this._widget_0.GetChild(e.NewIndex);
				((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate)child4).SetDataSource(null);
				this._widget_0.RemoveChild(child4);
				break;
			}
			case 5:
				break;
			default:
				return;
			}
		}

		// Token: 0x060006FE RID: 1790 RVA: 0x00030804 File Offset: 0x0002EA04
		public void OnList_datasource_Root_ActiveFiltersChanged(object sender, ListChangedEventArgs e)
		{
			switch (e.ListChangedType)
			{
			case 0:
				for (int i = this._widget_6.ChildCount - 1; i >= 0; i--)
				{
					Widget child = this._widget_6.GetChild(i);
					((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate)child).OnBeforeRemovedChild(child);
					Widget child2 = this._widget_6.GetChild(i);
					((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate)child2).SetDataSource(null);
					this._widget_6.RemoveChild(child2);
				}
				return;
			case 1:
				for (int j = 0; j < this._datasource_Root_ActiveFilters.Count; j++)
				{
					OrderTroopItemFilterVM bindingObject = this._datasource_Root_ActiveFilters[j];
					this._widget_6.FindChild((Widget widget) => widget.GetComponent<GeneratedWidgetData>().Data == bindingObject).SetSiblingIndex(j, false);
				}
				return;
			case 2:
			{
				OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate = new OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate(base.Context);
				GeneratedWidgetData generatedWidgetData = new GeneratedWidgetData(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate);
				OrderTroopItemFilterVM orderTroopItemFilterVM = this._datasource_Root_ActiveFilters[e.NewIndex];
				generatedWidgetData.Data = orderTroopItemFilterVM;
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate.AddComponent(generatedWidgetData);
				this._widget_6.AddChildAtIndex(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate, e.NewIndex);
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate.CreateWidgets();
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate.SetIds();
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate.SetAttributes();
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate.SetDataSource(orderTroopItemFilterVM);
				return;
			}
			case 3:
			{
				Widget child3 = this._widget_6.GetChild(e.NewIndex);
				((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate)child3).OnBeforeRemovedChild(child3);
				return;
			}
			case 4:
			{
				Widget child4 = this._widget_6.GetChild(e.NewIndex);
				((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate)child4).SetDataSource(null);
				this._widget_6.RemoveChild(child4);
				break;
			}
			case 5:
				break;
			default:
				return;
			}
		}

		// Token: 0x060006FF RID: 1791 RVA: 0x000309A0 File Offset: 0x0002EBA0
		private void RefreshDataSource_datasource_Root(OrderTroopItemVM newDataSource)
		{
			if (this._datasource_Root != null)
			{
				this._datasource_Root.PropertyChanged -= this.ViewModelPropertyChangedListenerOf_datasource_Root;
				this._datasource_Root.PropertyChangedWithValue -= new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithBoolValue -= new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithIntValue -= new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithFloatValue -= new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithUIntValue -= new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithColorValue -= new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithDoubleValue -= new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithVec2Value -= new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root);
				this._widget.PropertyChanged -= this.PropertyChangedListenerOf_widget;
				this._widget.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget;
				this._widget.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget;
				this._widget.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget;
				this._widget.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget;
				this._widget.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget;
				this._widget.intPropertyChanged -= this.intPropertyChangedListenerOf_widget;
				this._widget.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget;
				this._widget.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget;
				this._widget_1_1.PropertyChanged -= this.PropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_1_1;
				this._widget_2.PropertyChanged -= this.PropertyChangedListenerOf_widget_2;
				this._widget_2.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_2;
				this._widget_2.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_2;
				this._widget_2.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_2;
				this._widget_2.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_2;
				this._widget_2.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_2;
				this._widget_2.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_2;
				this._widget_2.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_2;
				this._widget_2.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_2;
				this._widget_3.PropertyChanged -= this.PropertyChangedListenerOf_widget_3;
				this._widget_3.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_3;
				this._widget_3.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_3;
				this._widget_3.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_3;
				this._widget_3.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_3;
				this._widget_3.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_3;
				this._widget_3.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_3;
				this._widget_3.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_3;
				this._widget_3.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_3;
				if (this._datasource_Root_ActiveFormationClasses != null)
				{
					this._datasource_Root_ActiveFormationClasses.ListChanged -= new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFormationClassesChanged);
					for (int i = this._widget_0.ChildCount - 1; i >= 0; i--)
					{
						Widget child = this._widget_0.GetChild(i);
						((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate)child).OnBeforeRemovedChild(child);
						Widget child2 = this._widget_0.GetChild(i);
						((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate)child2).SetDataSource(null);
						this._widget_0.RemoveChild(child2);
					}
					this._datasource_Root_ActiveFormationClasses = null;
				}
				if (this._datasource_Root_SelectionKey != null)
				{
					this._datasource_Root_SelectionKey.PropertyChanged -= this.ViewModelPropertyChangedListenerOf_datasource_Root_SelectionKey;
					this._datasource_Root_SelectionKey.PropertyChangedWithValue -= new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithBoolValue -= new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithIntValue -= new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithFloatValue -= new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithUIntValue -= new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithColorValue -= new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithDoubleValue -= new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithVec2Value -= new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_SelectionKey);
					this._widget_2_0.PropertyChanged -= this.PropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_2_0;
					this._datasource_Root_SelectionKey = null;
				}
				if (this._datasource_Root_CommanderImageIdentifier != null)
				{
					this._datasource_Root_CommanderImageIdentifier.PropertyChanged -= this.ViewModelPropertyChangedListenerOf_datasource_Root_CommanderImageIdentifier;
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithValue -= new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithBoolValue -= new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithIntValue -= new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithFloatValue -= new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithUIntValue -= new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithColorValue -= new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithDoubleValue -= new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithVec2Value -= new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._widget_5.PropertyChanged -= this.PropertyChangedListenerOf_widget_5;
					this._widget_5.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_5;
					this._widget_5.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_5;
					this._widget_5.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_5;
					this._widget_5.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_5;
					this._widget_5.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_5;
					this._widget_5.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_5;
					this._widget_5.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_5;
					this._widget_5.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_5;
					this._datasource_Root_CommanderImageIdentifier = null;
				}
				if (this._datasource_Root_ActiveFilters != null)
				{
					this._datasource_Root_ActiveFilters.ListChanged -= new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFiltersChanged);
					for (int j = this._widget_6.ChildCount - 1; j >= 0; j--)
					{
						Widget child3 = this._widget_6.GetChild(j);
						((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate)child3).OnBeforeRemovedChild(child3);
						Widget child4 = this._widget_6.GetChild(j);
						((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate)child4).SetDataSource(null);
						this._widget_6.RemoveChild(child4);
					}
					this._datasource_Root_ActiveFilters = null;
				}
				this._datasource_Root = null;
			}
			this._datasource_Root = newDataSource;
			if (this._datasource_Root != null)
			{
				this._datasource_Root.PropertyChanged += this.ViewModelPropertyChangedListenerOf_datasource_Root;
				this._datasource_Root.PropertyChangedWithValue += new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithBoolValue += new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithIntValue += new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithFloatValue += new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithUIntValue += new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithColorValue += new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithDoubleValue += new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithVec2Value += new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root);
				this._widget.PropertyChanged += this.PropertyChangedListenerOf_widget;
				this._widget.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget;
				this._widget.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget;
				this._widget.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget;
				this._widget.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget;
				this._widget.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget;
				this._widget.intPropertyChanged += this.intPropertyChangedListenerOf_widget;
				this._widget.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget;
				this._widget.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget;
				this._widget_1_1.IntText = this._datasource_Root.Morale;
				this._widget_1_1.IsVisible = this._datasource_Root.HaveTroops;
				this._widget_1_1.PropertyChanged += this.PropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.intPropertyChanged += this.intPropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_1_1;
				this._widget_2.IsVisible = this._datasource_Root.HaveTroops;
				this._widget_2.PropertyChanged += this.PropertyChangedListenerOf_widget_2;
				this._widget_2.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_2;
				this._widget_2.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_2;
				this._widget_2.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_2;
				this._widget_2.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_2;
				this._widget_2.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_2;
				this._widget_2.intPropertyChanged += this.intPropertyChangedListenerOf_widget_2;
				this._widget_2.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_2;
				this._widget_2.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_2;
				this._widget_3.ValueFloat = this._datasource_Root.AmmoPercentage;
				this._widget_3.IsVisible = this._datasource_Root.IsAmmoAvailable;
				this._widget_3.PropertyChanged += this.PropertyChangedListenerOf_widget_3;
				this._widget_3.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_3;
				this._widget_3.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_3;
				this._widget_3.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_3;
				this._widget_3.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_3;
				this._widget_3.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_3;
				this._widget_3.intPropertyChanged += this.intPropertyChangedListenerOf_widget_3;
				this._widget_3.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_3;
				this._widget_3.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_3;
				this._datasource_Root_ActiveFormationClasses = this._datasource_Root.ActiveFormationClasses;
				if (this._datasource_Root_ActiveFormationClasses != null)
				{
					this._datasource_Root_ActiveFormationClasses.ListChanged += new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFormationClassesChanged);
					for (int k = 0; k < this._datasource_Root_ActiveFormationClasses.Count; k++)
					{
						OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate = new OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate(base.Context);
						GeneratedWidgetData generatedWidgetData = new GeneratedWidgetData(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate);
						OrderTroopItemFormationClassVM orderTroopItemFormationClassVM = this._datasource_Root_ActiveFormationClasses[k];
						generatedWidgetData.Data = orderTroopItemFormationClassVM;
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate.AddComponent(generatedWidgetData);
						this._widget_0.AddChildAtIndex(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate, k);
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate.CreateWidgets();
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate.SetIds();
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate.SetAttributes();
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate.SetDataSource(orderTroopItemFormationClassVM);
					}
				}
				this._datasource_Root_SelectionKey = this._datasource_Root.SelectionKey;
				if (this._datasource_Root_SelectionKey != null)
				{
					this._datasource_Root_SelectionKey.PropertyChanged += this.ViewModelPropertyChangedListenerOf_datasource_Root_SelectionKey;
					this._datasource_Root_SelectionKey.PropertyChangedWithValue += new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithBoolValue += new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithIntValue += new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithFloatValue += new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithUIntValue += new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithColorValue += new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithDoubleValue += new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithVec2Value += new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_SelectionKey);
					this._widget_2_0.KeyID = this._datasource_Root_SelectionKey.KeyID;
					this._widget_2_0.PropertyChanged += this.PropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.intPropertyChanged += this.intPropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_2_0;
				}
				this._datasource_Root_CommanderImageIdentifier = this._datasource_Root.CommanderImageIdentifier;
				if (this._datasource_Root_CommanderImageIdentifier != null)
				{
					this._datasource_Root_CommanderImageIdentifier.PropertyChanged += this.ViewModelPropertyChangedListenerOf_datasource_Root_CommanderImageIdentifier;
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithValue += new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithBoolValue += new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithIntValue += new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithFloatValue += new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithUIntValue += new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithColorValue += new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithDoubleValue += new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithVec2Value += new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._widget_5.AdditionalArgs = this._datasource_Root_CommanderImageIdentifier.AdditionalArgs;
					this._widget_5.ImageId = this._datasource_Root_CommanderImageIdentifier.Id;
					this._widget_5.ImageTypeCode = this._datasource_Root_CommanderImageIdentifier.ImageTypeCode;
					this._widget_5.PropertyChanged += this.PropertyChangedListenerOf_widget_5;
					this._widget_5.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_5;
					this._widget_5.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_5;
					this._widget_5.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_5;
					this._widget_5.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_5;
					this._widget_5.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_5;
					this._widget_5.intPropertyChanged += this.intPropertyChangedListenerOf_widget_5;
					this._widget_5.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_5;
					this._widget_5.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_5;
				}
				this._datasource_Root_ActiveFilters = this._datasource_Root.ActiveFilters;
				if (this._datasource_Root_ActiveFilters != null)
				{
					this._datasource_Root_ActiveFilters.ListChanged += new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFiltersChanged);
					for (int l = 0; l < this._datasource_Root_ActiveFilters.Count; l++)
					{
						OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate = new OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate(base.Context);
						GeneratedWidgetData generatedWidgetData2 = new GeneratedWidgetData(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate);
						OrderTroopItemFilterVM orderTroopItemFilterVM = this._datasource_Root_ActiveFilters[l];
						generatedWidgetData2.Data = orderTroopItemFilterVM;
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate.AddComponent(generatedWidgetData2);
						this._widget_6.AddChildAtIndex(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate, l);
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate.CreateWidgets();
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate.SetIds();
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate.SetAttributes();
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate.SetDataSource(orderTroopItemFilterVM);
					}
				}
			}
		}

		// Token: 0x06000700 RID: 1792 RVA: 0x00031BE4 File Offset: 0x0002FDE4
		private void RefreshDataSource_datasource_Root_ActiveFormationClasses(MBBindingList<OrderTroopItemFormationClassVM> newDataSource)
		{
			if (this._datasource_Root_ActiveFormationClasses != null)
			{
				this._datasource_Root_ActiveFormationClasses.ListChanged -= new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFormationClassesChanged);
				for (int i = this._widget_0.ChildCount - 1; i >= 0; i--)
				{
					Widget child = this._widget_0.GetChild(i);
					((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate)child).OnBeforeRemovedChild(child);
					Widget child2 = this._widget_0.GetChild(i);
					((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate)child2).SetDataSource(null);
					this._widget_0.RemoveChild(child2);
				}
				this._datasource_Root_ActiveFormationClasses = null;
			}
			this._datasource_Root_ActiveFormationClasses = newDataSource;
			this._datasource_Root_ActiveFormationClasses = this._datasource_Root.ActiveFormationClasses;
			if (this._datasource_Root_ActiveFormationClasses != null)
			{
				this._datasource_Root_ActiveFormationClasses.ListChanged += new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFormationClassesChanged);
				for (int j = 0; j < this._datasource_Root_ActiveFormationClasses.Count; j++)
				{
					OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate = new OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate(base.Context);
					GeneratedWidgetData generatedWidgetData = new GeneratedWidgetData(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate);
					OrderTroopItemFormationClassVM orderTroopItemFormationClassVM = this._datasource_Root_ActiveFormationClasses[j];
					generatedWidgetData.Data = orderTroopItemFormationClassVM;
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate.AddComponent(generatedWidgetData);
					this._widget_0.AddChildAtIndex(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate, j);
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate.CreateWidgets();
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate.SetIds();
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate.SetAttributes();
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate.SetDataSource(orderTroopItemFormationClassVM);
				}
			}
		}

		// Token: 0x06000701 RID: 1793 RVA: 0x00031D20 File Offset: 0x0002FF20
		private void RefreshDataSource_datasource_Root_SelectionKey(InputKeyItemVM newDataSource)
		{
			if (this._datasource_Root_SelectionKey != null)
			{
				this._datasource_Root_SelectionKey.PropertyChanged -= this.ViewModelPropertyChangedListenerOf_datasource_Root_SelectionKey;
				this._datasource_Root_SelectionKey.PropertyChangedWithValue -= new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithBoolValue -= new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithIntValue -= new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithFloatValue -= new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithUIntValue -= new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithColorValue -= new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithDoubleValue -= new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithVec2Value -= new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_SelectionKey);
				this._widget_2_0.PropertyChanged -= this.PropertyChangedListenerOf_widget_2_0;
				this._widget_2_0.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_2_0;
				this._widget_2_0.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_2_0;
				this._widget_2_0.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_2_0;
				this._widget_2_0.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_2_0;
				this._widget_2_0.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_2_0;
				this._widget_2_0.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_2_0;
				this._widget_2_0.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_2_0;
				this._widget_2_0.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_2_0;
				this._datasource_Root_SelectionKey = null;
			}
			this._datasource_Root_SelectionKey = newDataSource;
			this._datasource_Root_SelectionKey = this._datasource_Root.SelectionKey;
			if (this._datasource_Root_SelectionKey != null)
			{
				this._datasource_Root_SelectionKey.PropertyChanged += this.ViewModelPropertyChangedListenerOf_datasource_Root_SelectionKey;
				this._datasource_Root_SelectionKey.PropertyChangedWithValue += new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithBoolValue += new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithIntValue += new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithFloatValue += new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithUIntValue += new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithColorValue += new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithDoubleValue += new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithVec2Value += new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_SelectionKey);
				this._widget_2_0.KeyID = this._datasource_Root_SelectionKey.KeyID;
				this._widget_2_0.PropertyChanged += this.PropertyChangedListenerOf_widget_2_0;
				this._widget_2_0.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_2_0;
				this._widget_2_0.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_2_0;
				this._widget_2_0.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_2_0;
				this._widget_2_0.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_2_0;
				this._widget_2_0.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_2_0;
				this._widget_2_0.intPropertyChanged += this.intPropertyChangedListenerOf_widget_2_0;
				this._widget_2_0.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_2_0;
				this._widget_2_0.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_2_0;
			}
		}

		// Token: 0x06000702 RID: 1794 RVA: 0x000320B4 File Offset: 0x000302B4
		private void RefreshDataSource_datasource_Root_CommanderImageIdentifier(ImageIdentifierVM newDataSource)
		{
			if (this._datasource_Root_CommanderImageIdentifier != null)
			{
				this._datasource_Root_CommanderImageIdentifier.PropertyChanged -= this.ViewModelPropertyChangedListenerOf_datasource_Root_CommanderImageIdentifier;
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithValue -= new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithBoolValue -= new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithIntValue -= new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithFloatValue -= new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithUIntValue -= new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithColorValue -= new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithDoubleValue -= new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithVec2Value -= new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._widget_5.PropertyChanged -= this.PropertyChangedListenerOf_widget_5;
				this._widget_5.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_5;
				this._widget_5.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_5;
				this._widget_5.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_5;
				this._widget_5.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_5;
				this._widget_5.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_5;
				this._widget_5.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_5;
				this._widget_5.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_5;
				this._widget_5.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_5;
				this._datasource_Root_CommanderImageIdentifier = null;
			}
			this._datasource_Root_CommanderImageIdentifier = newDataSource;
			this._datasource_Root_CommanderImageIdentifier = this._datasource_Root.CommanderImageIdentifier;
			if (this._datasource_Root_CommanderImageIdentifier != null)
			{
				this._datasource_Root_CommanderImageIdentifier.PropertyChanged += this.ViewModelPropertyChangedListenerOf_datasource_Root_CommanderImageIdentifier;
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithValue += new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithBoolValue += new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithIntValue += new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithFloatValue += new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithUIntValue += new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithColorValue += new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithDoubleValue += new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithVec2Value += new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._widget_5.AdditionalArgs = this._datasource_Root_CommanderImageIdentifier.AdditionalArgs;
				this._widget_5.ImageId = this._datasource_Root_CommanderImageIdentifier.Id;
				this._widget_5.ImageTypeCode = this._datasource_Root_CommanderImageIdentifier.ImageTypeCode;
				this._widget_5.PropertyChanged += this.PropertyChangedListenerOf_widget_5;
				this._widget_5.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_5;
				this._widget_5.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_5;
				this._widget_5.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_5;
				this._widget_5.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_5;
				this._widget_5.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_5;
				this._widget_5.intPropertyChanged += this.intPropertyChangedListenerOf_widget_5;
				this._widget_5.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_5;
				this._widget_5.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_5;
			}
		}

		// Token: 0x06000703 RID: 1795 RVA: 0x00032474 File Offset: 0x00030674
		private void RefreshDataSource_datasource_Root_ActiveFilters(MBBindingList<OrderTroopItemFilterVM> newDataSource)
		{
			if (this._datasource_Root_ActiveFilters != null)
			{
				this._datasource_Root_ActiveFilters.ListChanged -= new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFiltersChanged);
				for (int i = this._widget_6.ChildCount - 1; i >= 0; i--)
				{
					Widget child = this._widget_6.GetChild(i);
					((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate)child).OnBeforeRemovedChild(child);
					Widget child2 = this._widget_6.GetChild(i);
					((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate)child2).SetDataSource(null);
					this._widget_6.RemoveChild(child2);
				}
				this._datasource_Root_ActiveFilters = null;
			}
			this._datasource_Root_ActiveFilters = newDataSource;
			this._datasource_Root_ActiveFilters = this._datasource_Root.ActiveFilters;
			if (this._datasource_Root_ActiveFilters != null)
			{
				this._datasource_Root_ActiveFilters.ListChanged += new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFiltersChanged);
				for (int j = 0; j < this._datasource_Root_ActiveFilters.Count; j++)
				{
					OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate = new OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate(base.Context);
					GeneratedWidgetData generatedWidgetData = new GeneratedWidgetData(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate);
					OrderTroopItemFilterVM orderTroopItemFilterVM = this._datasource_Root_ActiveFilters[j];
					generatedWidgetData.Data = orderTroopItemFilterVM;
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate.AddComponent(generatedWidgetData);
					this._widget_6.AddChildAtIndex(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate, j);
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate.CreateWidgets();
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate.SetIds();
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate.SetAttributes();
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate.SetDataSource(orderTroopItemFilterVM);
				}
			}
		}

		// Token: 0x0400010F RID: 271
		private OrderTroopItemBrushWidget _widget;

		// Token: 0x04000110 RID: 272
		private GridWidget _widget_0;

		// Token: 0x04000111 RID: 273
		private ListPanel _widget_1;

		// Token: 0x04000112 RID: 274
		private Widget _widget_1_0;

		// Token: 0x04000113 RID: 275
		private TextWidget _widget_1_1;

		// Token: 0x04000114 RID: 276
		private Widget _widget_2;

		// Token: 0x04000115 RID: 277
		private InputKeyVisualWidget _widget_2_0;

		// Token: 0x04000116 RID: 278
		private SliderWidget _widget_3;

		// Token: 0x04000117 RID: 279
		private Widget _widget_3_0;

		// Token: 0x04000118 RID: 280
		private Widget _widget_3_1;

		// Token: 0x04000119 RID: 281
		private Widget _widget_4;

		// Token: 0x0400011A RID: 282
		private ImageIdentifierWidget _widget_5;

		// Token: 0x0400011B RID: 283
		private GridWidget _widget_6;

		// Token: 0x0400011C RID: 284
		private OrderTroopItemVM _datasource_Root;

		// Token: 0x0400011D RID: 285
		private MBBindingList<OrderTroopItemFormationClassVM> _datasource_Root_ActiveFormationClasses;

		// Token: 0x0400011E RID: 286
		private InputKeyItemVM _datasource_Root_SelectionKey;

		// Token: 0x0400011F RID: 287
		private ImageIdentifierVM _datasource_Root_CommanderImageIdentifier;

		// Token: 0x04000120 RID: 288
		private MBBindingList<OrderTroopItemFilterVM> _datasource_Root_ActiveFilters;
	}
}
